﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Cricket.LinqModel
{
    public partial class MatchSessionResult
    {
         private IDataRepository _dataObject;
         public MatchSessionResult(IDataRepository dataObject)
            : this()
        {
            _dataObject = dataObject;
        }
         public void DeleteAndCreate()
        {
            _dataObject.DeleteAndCreate(this);
        }
         public void Delete()
         {
             _dataObject.Delete(this);
         }
         public List<MatchSessionResult> GetMatchSessionResultByTeam(int MatchId, int TeamId)
         {
             return _dataObject.GetMatchSessionResultByTeam(MatchId, TeamId);
         }
         public void UpdateMatchSessionResult()
         {
             _dataObject.UpdateMatchSessionResult(this);
         }

    }
}
